import { createApp } from 'vue'
import router from './router' // 导入路由
import App from './App.vue'
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css'
import './assets/css/style.scss'

import 'element-plus/dist/index.css' // 引入css
import 'virtual:windi.css' //引入css
import { setupComponent } from './setting/export'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
setupComponent(app)
app
  .use(Antd)
  .use(router) // 使用路由
  .mount('#app')
